package nl.fonfolio.view {
	import nl.fonfolio.core.FonfolioEvent;	
	import nl.fonfolio.model.Model;	
	import nl.fonfolio.controller.Controller;	
	
	import flash.display.Sprite;
	
	/**
	 * @author Paul
	 */
	public class Project extends Sprite {
		private var model:Model;
		private var controller:Controller;
		
		public var fonfolio:Sprite;

		public function Project(fonfolio:Sprite,model : Model,controller : Controller) {
			this.fonfolio = fonfolio;
			this.model = model;
			this.controller = controller;
			
			this.model.addEventListener(FonfolioEvent.CONTROL_TYPE, this.update);
		}
		
		private function update(event : FonfolioEvent) : void {
			switch (event.command){
				case "LOAD_PROJECT":
					
					
				break;
			}
		}
	}
}
